Programming AWS Lambda by Mike Roberts & John Chapin

Programming AWS Lambda by Mike Roberts & John Chapin

Author:Mike Roberts & John Chapin [Mike Roberts]
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2020-02-24T16:00:00+00:00


Invocation types

Great - our code is alive! What happens next?

To explore this let’s start using the AWS CLI. In chapter 2 we used the higher level SAM CLI tool - the AWS CLI is a little closer to the guts of the AWS machine. Specifically we’re going to use a command in the AWS CLI for calling Lambda functions: aws lambda invoke.

Assuming you ran the examples in chapter 2, let’s start with a small update. Open up the template.yaml file (which we’ll refer to as the SAM template occasionally from now on), and within the properties section add a new property named FunctionName with the value HelloWorldJava, so that the resource section now looks as follows:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.